#ifndef FTTEXTAREA_H
#define FTTEXTAREA_H

#include "ftbasicwidget.h"
#include <QtGui>

class FTTextArea : public FTBasicWidget
{
    Q_OBJECT
public:
    explicit FTTextArea(const QString& str = "", int rows = 1, QWidget *parent = 0);

    virtual void paintEvent ( QPaintEvent * event );

    bool wordWrap() const;
    void setWordWrap(bool);

    QSize sizeHint() const;
    QSize minimumSizeHint() const;

    QString text() const;
    void setText( const QString& );

    int alignment() const;
    void setAlignment( int );

private:
    QString _text;
    int _alignment;
    int nRows;
    bool _wordWrap;
};

#endif // FTTEXTAREA_H
